package com.heima.crm.pojos.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2023-07-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_business")
public class TbBusiness implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 商机id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 客户id
     */
    private Long customerId;

    /**
     * 客户姓名
     */
    private String customerName;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 归属人id
     */
    private Long ascriptionId;

    private String ascriptionName;

    /**
     * 意向学科
     */
    private Integer disciplineId;

    /**
     * 0=待跟进 1=跟进中  2=待分配  3=已签合同
     */
    private Short status;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 上次跟进时间
     */
    private LocalDateTime nextFollowTime;

    /**
     * 退出公海理由
     */
    private String returnPoolReason;

    /**
     * 上次退回时间
     */
    private LocalDateTime returnTime;
}
